package cn.edu.sasu.mapper;

import cn.edu.sasu.domain.entity.PatientEducationActivity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PatientEducationActivityMapper {
    Integer countActivities(Integer deleteFlagYes);

    List<PatientEducationActivity> activityList(@Param("deleteFlag") Integer deleteFlag, @Param("offset") Integer offset, @Param("rows") Integer rows);

    List<PatientEducationActivity> getAllActivity(@Param("deleteFlag") Integer deleteFlag);

    void updateActivityDeleteFlagById(@Param("activityId")Integer activityId,@Param("deleteFlagYes") Integer deleteFlagYes);

    void updateActivityDeleteFlagByIds(@Param("ids") List<Integer> ids,@Param("deleteFlagYes") Integer deleteFlagYes);
    List<PatientEducationActivity> searchActivityList(@Param("deleteFlagYes")Integer deleteFlagYes, @Param("offset")Integer offset, @Param("rows") Integer rows, @Param("activityName") String activityName, @Param("activityStatus") Byte  activityStatus);

    Integer countSearchActivity(@Param("deleteFlagYes") Integer deleteFlagYes,@Param("activityName") String activityName);

    PatientEducationActivity findActivityMapperByActivityName(@Param("activityName")  String activityName);

    Integer update(PatientEducationActivity patientEducationActivity);

    void save(PatientEducationActivity patientEducationActivity);
}
